package ypmits.cms.view.components {
	import ypmits.components.util.TextFieldUtility;

	import flash.display.Sprite;

	/**
	 * @author Dave Lenz
	 */
	public class CMSButtonWhite extends Sprite {

		private var textfield : TextFieldUtility;
		private var text : String;
		private var align : String;

		
		public function CMSButtonWhite( text : String, align : String = "") {
			this.text = text;
			this.align = align;
			
			draw();
		}

		
		
		private function draw() : void 
		{
			textfield = new TextFieldUtility("", null, 26 );
			addChild( textfield );
			
			buttonMode = true;
			mouseEnabled = true;
			mouseChildren = false;
			
			redraw( );
		}

		
		
		private function redraw() : void 
		{
			graphics.beginFill( 0xFFFFFF );
			graphics.drawRoundRect(0, 0, 136, 41, 10 );
		}

		
		
		public function dispose() : void {
			trace( "DISPOSE: Nog implementeren!" );
		}
	}
}
